.scan-view(@color,@length) {
  width: @length;
  height: @length;
  background-color: @color;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.scan-view-1 {
  .scan-view(rgba(46, 155, 255, 0.4),210rpx);
  animation: wave 3s infinite linear forwards;
}

.scan-view-2 {
  .scan-view(rgba(46, 155, 255, 0.4),210rpx);
  animation: wave 3s infinite linear forwards;
  animation-delay: 1s;
}

@keyframes wave {
  0% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.4;
  }
  25% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.2;
  }
  75% {
    transform: translate(-50%, -50%) scale(1.7);
    opacity: 0.1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.9);
    opacity: 0;
  }
}
